/*
 * @Author: yangfan 1437446666@qq.com
 * @Date: 2023-03-04 22:42:34
 * @LastEditors: yangfan 1437446666@qq.com
 * @LastEditTime: 2023-03-06 19:56:30
 * @FilePath: \s_2006A_shixun\src\api\fileAdmin.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { GETHttp, DELEeteHttp, POSTHttp } from '../utils/https'
//获取文件列表接口
export const getFileList = async (params) => {
  return await GETHttp('/api/file', params)
}

//获取单个数据
export const getFileDetail = async (params) => {
  return await GETHttp('/api/file/', params)
}

//删除接口
export const deleteFile = async (params) => {
  return await DELEeteHttp(`/api/file/${params}`)
}
//上传图片
export const Upload = async (params) => {
  return await POSTHttp('/api/file/upload?unique=0', params)
}
